package com.tjw.ec.upms.api.feign.fallback;

import com.tjw.ec.common.core.util.Response;
import com.tjw.ec.upms.api.entity.UserAccountEntity;
import com.tjw.ec.upms.api.feign.RemoteUserAccountService;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 远程调用异常处理 : 用户登陆信息表
 *
 * @author T-junwen
 * @email t-junwen@foxmail.com
 * @date 2019-08-02 11:58:44
 */
@Slf4j
@Component
public class RemoteUserAccountServiceFallbackImpl implements RemoteUserAccountService {

    @Setter
    private Throwable cause;


    /**
     * @param username
     * @Title: 根据账号查询用户账户信息
     * @Param: [username]
     * @return: com.tjw.ec.common.core.util.Response<com.tjw.ec.upms.api.entity.UserAccountEntity>
     * @Author: 田俊文
     * @Date: 2019/8/2 13:41
     * @Throws:
     */
    @Override
    public Response<UserAccountEntity> getUserAccountByUsername(String username) {
        return Response.faile();
    }
}

